package com.jiazhong.shuzu;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a[]=new int[8];
        int num1=0,num2=0;
        System.out.println("please input a[]");
        for (int i=0;i<a.length;i++){
            a[i]= sc.nextInt();
        }
        System.out.println("a[]为");
        for (int i=0;i<a.length;i++){
            System.out.print(" "+a[i]);
        }
        for (int i=0;i<a.length;i++){
            if (a[i]%2==0)
                num1++;
            else
                num2++;
        }
        int a1[]=new int[num1];
        int a2[]=new int[num2];

    }
}
